import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//机构列表
export function getContentList(type) {
  return request({
    url: '/content/list/'+type,
    method: 'get',
  })
}

//新增
export function getContentAdd(data) {
    return request({
      url: '/content/add',
      method: 'post',
      data
    })
  }

// 修改
export function getContentUpdate(data) {
    return request({
      url: '/content/update',
      method: 'post',
      data
    })
  }


// 查看
export function getContentDetail(id) {
    return request({
      url: '/content/detail/'+id,
      method: 'get',
    })
  }

// 删除
export function getContentDelete(id) {
    return request({
      url: '/content/delete/'+id,
      method: 'get',
    })
  }